package ocean;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import ocean.inventoryprotection.common.ModItems;
import ocean.inventoryprotection.common.config.ApplicationConfig;

@Mod(InventoryProtection.MODID)
public class InventoryProtection {

    public static final String MODID = "inventoryprotection";

    public InventoryProtection() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        MinecraftForge.EVENT_BUS.register(this);

        ModItems.register(modEventBus);

        ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, ApplicationConfig.SPEC, "inventory-protection" +
                ".toml");
    }
}
